#include "lt2911.h"
#include "bsp.h"
#include "systick.h"
#include "printf.h"

void Timer0_Delay1ms(unsigned int nms)
{
	delay_1ms(nms);
}

void LCD_Reset(void)
{
	bsp_gpio_write_driver_rst(0);
	delay_1ms(50);

	bsp_gpio_write_driver_rst(1);
	delay_1ms(50);
}

void LT2911_show_timing(struct video_timing *t)
{
	printf("\r\n=== Video Timing ===");
	printf("\r\n\33[32m video check: hfp, hs, hbp, hact, htol= %d, %d, %d, %d, %d\033[37m"
	, t->hfp, t->hs, t->hbp, t->hact, t->htotal);
	printf("\r\n\33[32m video check: vfp, vs, vbp, vact, vtol= %d, %d, %d, %d, %d\033[37m"
	, t->vfp, t->vs, t->vbp, t->vact, t->vtotal);
}
